package com.ucenter.server.user.service;

import org.springframework.stereotype.Component;

import com.system.handle.model.ResponseFrame;
import com.ucenter.server.user.pojo.UserInfo;

/**
 * user_info的Service
 * @author autoCode
 * @date 2018-02-06 15:18:19
 * @version V1.0.0
 */
@Component
public interface UserInfoService {
	
	/**
	 * 保存或修改
	 * @param userInfo
	 * @return
	 */
	public ResponseFrame saveOrUpdate(UserInfo userInfo);
	
	/**
	 * 根据userId获取对象
	 * @param userId
	 * @return
	 */
	public UserInfo get(String userId);

	/**
	 * 分页获取对象
	 * @param userInfo
	 * @return
	 */
	public ResponseFrame pageQuery(UserInfo userInfo);
	
	/**
	 * 根据userId删除对象
	 * @param userId
	 * @return
	 */
	public ResponseFrame delete(String userId);

	public ResponseFrame login(String userName, String password, String websiteId, String ip);
}